<template>
  <review-editor 
    :is-edit-mode="true" 
    :initial-data="reviewData" 
    @submit="handleUpdateReview"
  />
</template>

<script>

export default {
  data() {
    return {
      reviewData: {
        
      }
    }
  },
  methods: {
    handleUpdateReview(updatedData) {
      // 调用API更新评论
      console.log('更新评论:', updatedData)
    }
  },
  onLoad(options) {
    this.reviewData=JSON.parse(decodeURIComponent(options.review))
  }
}
</script>